const TOKEN_KEY = 'hmtt80'


export const saveToken = (tokenObj) => {
    localStorage.setItem(TOKEN_KEY, JSON.stringify(tokenObj))
}

export const getToken = () => {
    return JSON.parse(localStorage.getItem(TOKEN_KEY))
}

export const delToken = () => {
    localStorage.removeItem(TOKEN_KEY)
}